import { FC } from 'react'
import SubMenu from './sub-menu'
import { SubMenuProps } from './config'
import MenuItem, { MenuItemProps } from '../MenuItem'

export * from './config'
export * from './sub-menu'

export type ISubMenuComponent = FC<SubMenuProps> & {
  MenuItem: FC<MenuItemProps>
  SubMenu: FC<SubMenuProps>
}

const TransSubMenu = SubMenu as ISubMenuComponent
TransSubMenu.MenuItem = MenuItem

export default TransSubMenu
